extends "../nigulasi-1/nigulasi-1.gd"

func _extInit():
	._extInit()
	lv = 2
	addSkill("施放鱼雷时有[暴击率]的几率向随机敌人额外发射2枚", "均衡鱼雷", "missileLoad", 10)
var p2 = 2
func _castCdSkill(id):
	._castCdSkill(id)
	if id == "torpedo" and sys.rndPer(att.cri*100):
		var chas = getAllChas(1)
		chas.shuffle()
		for i in range(p2):
			if i >= chas.size() : break
			castTorpedo(chas[i])
		if lv == 3:
			for i in getAllChas(2):
				if i.type == sys.CharaClass.DD:
					i.addBuff(buff.b_qiangGong.new(4))	